const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: '0.0.0.0',
    open: true,
    client:{
      overlay:false
    },
    proxy: {
     '/admin-api': {
        target: `http://127.0.0.1:9091`,  //后端接口
        changeOrigin: true,
        pathRewrite: {
         '^/admin-api/': ''
        }
      },
      '/imgs': {
        target: `http://127.0.0.1:9093/imgs`,  //图片资源调用
        changeOrigin: true,
        pathRewrite: {
         '^/imgs/': ''
        }
      }
    }
  },
})
